package com.sharemarking.wa.common.eum;

/**
 * @author dxy
 */
public enum OrderOperateTypeEum {

    ACCEPT("0", "接单"),
    CANCEL("1", "取消订单"),
    FINISH("2","确认收货"),
    PAY("3","支付"),
    REPUBLISH("4","重新发布"),
    END("5","完结订单"),
    REPLACE("6","替换司机"),
    DELIVERY("7","送单"),
    CONFIRM("8","司机确认订单"),
    ASSIGN("9","分配司机"),
    CANCEL_ACCEPT("10","取消接单")
    ;
    private String key;
    private String value;
    public String getKey() {
        return key;
    }
    public void setKey(String key) {
        this.key = key;
    }
    public String getValue() {
        return value;
    }
    public void setValue(String value) {
        this.value = value;
    }

    OrderOperateTypeEum(String key, String value) {
        this.key = key;
        this.value = value;
    }
    public static String getValue(String index) {
        for (OrderOperateTypeEum item : OrderOperateTypeEum.values()) {
            if (item.getKey().equals(index)) {
                return item.value;
            }
        }
        return null;
    }
}
